package com.zjw.nanyinge.feign;


import com.zjw.nanyinge.vo.req.BaiduTokenParamsVO;
import com.zjw.nanyinge.vo.resp.BaiduTokenRespVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "baidu-token-api-service", url = "${baidu.api.token.url}")
public interface BaiduTokenApi {

    @PostMapping(value = "/oauth/2.0/token",consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    BaiduTokenRespVO oauthToken(BaiduTokenParamsVO baiduTokenParamsVO);

}
